﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SeDuce.IDAL;

namespace SeDuce.BLL
{
    public class AdBLL
    {
        private static readonly IAdDAL dal = SeDuce.DALFactory.DataAccess.CreateAdDAL();

        public DataTable GetAds()
        {
            return dal.GetAds();
        }

        public DataTable GetAdByID(int adID)
        {
            return dal.GetAdByID(adID);
        }

        public bool UpdateAd(SeDuce.Model.Ad ad)
        {
            return dal.UpdateAd(ad);
        }

        public bool InsertAd(SeDuce.Model.Ad ad)
        {
            return dal.InsertAd(ad);
        }

        public bool DeleteAd(int adID)
        {
            return dal.DeleteAd(adID);
        }
    }
}
